<template>

	<view class="">
		<!-- <view class="nav" :class="enable?'bg':'nobg' ">

		</view> -->
		<view :class="enable?'stickys1':'nostickys1' " class="wrap-home">
			<view @click="navTo" class="back">
				<image class="img" src="../../static/aidex/img/back.png" mode=""></image>
			</view>
			<view class="tit">
				{{title}} 
			</view>
		</view>

	</view>
</template>
<script>
	export default {

		props: {
			title: {
				type: String,
				required: true
			},
			enable: {
				type: Boolean,
				required: false
			},
		},
		data() {
			return {
				
			};
		},

		onLoad() {
		
		},

		methods: {

			navTo() {
				uni.navigateBack()
			}
		}
	};
</script>
<style lang="scss" scoped>
	.nav {
		height: 61rpx;
	}
	.bg{
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.9) !important;
		z-index: 9999;
	}

	.wrap-home {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		// position: relative;
		font-size: 36rpx;
		font-family: PingFang SC-Light, PingFang SC;
		font-weight: 300;
		color: #333333;
		height: 50px;



		.back {
			width: 80rpx;
			height: 42rpx;
			position: absolute;
			left: 32rpx;

			.img {
				width: 23rpx;
				height: 39rpx;
			}
		}
	}

	.stickys1 {

		position: fixed;
		top: 61rpx;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.9) !important;
		z-index: 9999;
	}

	.nostickys1 {

		position: relative;
	}
</style>
